home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Programming / imageioproc.lib / usr / Install-imageproc.library < prev   
Encoding:
Text File  |  2001-01-03  |  7.7 KB  |  255 lines

  1. ; Install imageprocess.library
  2. ; $VER: Install-imageprocess.library V1.0 (20.8.2000)
  3. ; © 2000 Paul Huxham
  4.  
  5. (set #catalog 0) ; english language is default
  6.  
  7. ; Find the current language
  8. (set #i 0)
  9. (while (set #thisfile (select #i
  10.         "english" "italiano" "deutsch" "español" "czech" "català" "dansk" "français"
  11.         "hrvatski" "nederlands" "norsk" "polski" "português"
  12.         "russian" "srpski" "suomi" "svenska" "ÃeÓtina"
  13.         ""))
  14.     (
  15.         (if (= @language #thisfile)
  16.             (
  17.                 (set #catalog #i)
  18.                 (set #catalogname #thisfile)
  19.             )
  20.         )
  21.         (set #i (+ #i 1))
  22.     )
  23. )
  24.  
  25. ; Query user for their language, using system as default
  26. (set #catalog
  27.     (askchoice
  28.         (prompt "Select your native language (language for installer)")
  29.         (help @askoptions-help)
  30.         (choices "English" "Italiano" "Deutsch" "Español" "Czech")
  31.         (default #catalog)
  32.     )
  33. )
  34.  
  35. ; Reset #catalogname as the user may have changed the language above
  36. (if (< #catalog 5)
  37.     (
  38.         (set #catalogname (select #catalog "english" "italiano" "deutsch" "español" "czech"))
  39.     )
  40. )
  41.  
  42. ; Some string defaults common for all languages
  43. (set #HOMEPAGE "http://mafeking.scouts.org.au/steeplesoftware")
  44. (set #BLANK "\n")
  45.  
  46.  
  47. ; ************************** English texts ******************************
  48. (set #INITIAL_MESSAGE
  49.   (cat "\nWelcome to the imageprocess.library installer\n\n\n"
  50.     "You can obtain updates and other information\nabout imageprocess.library from the homepage\n\n"
  51.     #HOMEPAGE)
  52. )
  53. (set #WRONG_INSTALLER_VERSION "\n\n\n\nYou need at least version 42.9 of Installer\nto install imageprocess.library")
  54. (set #WRONG_CPU "\n\n\n\nYou need a 68020 CPU or better\nto use imageprocess.library")
  55. (set #WRONG_OS_VERSION "\n\n\n\nYou need at least AmigaOS V2.0\nto use imageprocess.library")
  56. (set #INSTALLING "\nInstalling")
  57. (set #PROMPT_INSTALL_PPC "Install PPC (WarpOS) version?")
  58. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  59. (set #UPDATES_AVAILABLE "\nYou can get the latest version\nof imageprocess.library from the homepage")
  60. (set #YES "Yes")
  61. (set #NO "No")
  62.  
  63. ; ************************** Italiano texts *****************************
  64. (if (= #catalog 1)
  65. (
  66. (set #INITIAL_MESSAGE
  67.   (cat "\nBenvenuto nell'installazione di imageprocess.library\n\n\n"
  68.      "Puoi ottenere gli aggiornamenti, la mailing list e altre informazioni\nsu imageprocess.library alla homepage\n"
  69.      #HOMEPAGE)
  70. )
  71. (set #WRONG_INSTALLER_VERSION "\n\n\n\nNecessiti almeno della versione 42.9 dell'Installer\nper installare imageprocess.library")
  72. (set #WRONG_CPU "\n\n\n\nNecessiti di una CPU 68020 o superiore\nper usare imageprocess.library")
  73. (set #WRONG_OS_VERSION "\n\n\n\nNecessiti almeno di AmigaOS V2.0\nper usare imageprocess.library")
  74. (set #INSTALLING "\nInstallazione")
  75. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  76. (set #UPDATES_AVAILABLE "\nAggiornamenti di imageprocess.library e le librarie richieste\n\nsono disponibili sulla home page")
  77. (set #YES "Sì")
  78. (set #NO "No")
  79. )
  80. )
  81.  
  82. ; ************************** Deutsch texts ******************************
  83. (if (= #catalog 2)
  84. (
  85. (set #INITIAL_MESSAGE
  86.   (cat "\nWillkommen zur Installation von imageprocess.library\n\n\n"
  87.     "Updates, und weitere Information\nüber imageprocess.library gibt es auf der Homepage\n"
  88.     #HOMEPAGE)
  89. )
  90. (set #WRONG_INSTALLER_VERSION "\n\n\n\nSie benötigen mind. Version 42.9 des Installers\num imageprocess.library zu installieren")
  91. (set #WRONG_CPU "\n\n\n\nSie benötigen einen 68020 oder höher\num imageprocess.library ausführen zu können")
  92. (set #WRONG_OS_VERSION "\n\n\n\nSie benötigen mind. AmigaOS V2.0\num imageprocess.library ausführen zu können")
  93. (set #INSTALLING "\nInstalliert")
  94. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  95. (set #UPDATES_AVAILABLE "\nUpdates für imageprocess.library und den dazugehörigen libraries\n\ngibt es auf der Homepage")
  96. (set #YES "Ja")
  97. (set #NO "Nein")
  98. )
  99. )
  100.  
  101. ; ************************** Español texts ******************************
  102. (if (= #catalog 3)
  103. (
  104. (set #INITIAL_MESSAGE
  105.   (cat "\nBienvenido a la instalación de imageprocess.library\n\n\n"
  106.     "Podrás obtener actualizaciones, acceder a listas de correo y tener más información\nsobre imageprocess.library en la página web de Homepage\n"
  107.     #HOMEPAGE)
  108. )
  109. (set #WRONG_INSTALLER_VERSION "\n\n\n\nNecesitas al menos la versión 42.9 del Installer\npara instalar imageprocess.library")
  110. (set #WRONG_CPU "\n\n\n\nNecesitas un 68020 o superior\npara utilizar imageprocess.library")
  111. (set #WRONG_OS_VERSION "\n\n\n\nNecesitas al menos AmigaOS V2.0\npara utilizar imageprocess.library")
  112. (set #INSTALLING "\nInstalando")
  113. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  114. (set #UPDATES_AVAILABLE "\nLas actualizaciones de imageprocess.library y librerías necesarias\n\nestán disponibles en la página web de homepage")
  115. (set #YES "Sí")
  116. (set #NO "No")
  117. )
  118. )
  119.  
  120. ; ************************** Czech texts ******************************
  121. (if (= #catalog 4)
  122. (
  123. (set #INITIAL_MESSAGE
  124.   (cat "\nVítejte pêi instalaci programu imageprocess.library!\n\n\n"
  125.     "Dalîí informace, kontakt na ostatní uùivatele a aktualizace\nmûùete zdarma získat staùením z domovské stránky\n"
  126.     #HOMEPAGE)
  127. )
  128. (set #WRONG_INSTALLER_VERSION "\n\n\n\nK instalaci programu imageprocess.library\npotêebujete Installer V42.9 nebo vyîîí")
  129. (set #WRONG_CPU "\n\n\n\nKe spuîtëní programu imageprocess.library\npotêebujete alespoñ CPU68020 nebo lepîí")
  130. (set #WRONG_OS_VERSION "\n\n\n\nProgram imageprocess.library vyùaduje\nke spuîtëní AmigaOS V2.0")
  131. (set #INSTALLING "\nInstalace")
  132. (set #INSTALL_WHICH_VERSION "\nInstall version for which CPU?")
  133. (set #UPDATES_AVAILABLE "\n\nAktualizace programu imageprocess.library a pêísluîných\n\nknihoven jsou dostupné z domovské stránky")
  134. (set #YES "Ano")
  135. (set #NO "Ne")
  136. )
  137. )
  138.  
  139.  
  140. ; ************************* Global procedures ***************************
  141. (procedure P_copylib lib destpath newlibname
  142.     (
  143.         (copylib
  144.             (prompt (cat (cat #INSTALLING " ") (fileonly newlibname)))
  145.             (help @copylib-help)
  146.             (newname newlibname)
  147.             (source lib)
  148.             (dest destpath)
  149.             (confirm)
  150.             (optional askuser)
  151.         )
  152.     )
  153. )
  154.  
  155.  
  156. ; *********************** imageprocess.library install
  157.  
  158. (if (< @installer-version (+ (* 65536 42) 9))
  159.     (abort #WRONG_INSTALLER_VERSION)
  160. )
  161.  
  162. (if (< (database "cpu") 68020 )
  163.     (abort #WRONG_CPU)
  164. )
  165.  
  166. (set os_version (/ (getversion "exec.library" (resident)) 65536))
  167. (if (< os_version 37)
  168.     (abort #WRONG_OS_VERSION)
  169. )
  170.  
  171. ; All essential version numbers are correct, continue installation
  172. (message #INITIAL_MESSAGE)
  173.  
  174. (complete 0)
  175.  
  176.  
  177. ; *********************** Sort out what the user has where
  178.  
  179. ; Establish CPU type
  180.  
  181. (set #ourcpu (database "cpu"))
  182.  
  183. (if (= #ourcpu "68020") (set #ourcpu 0))
  184. (if (= #ourcpu "68030") (set #ourcpu 0))
  185. (if (= #ourcpu "68040") (set #ourcpu 1))
  186. (if (= #ourcpu "68060") (set #ourcpu 2))
  187.  
  188. (complete 0)
  189.  
  190. ; *********************** Install imageprocess.library
  191.  
  192. ; *********************** Is WarpOS installed
  193. (set #ppc 1) ; No PPC by default
  194.  
  195. (set warpos_version 0)
  196. (set warpos_version (getversion "warpos.library" ))
  197. (if (> warpos_version 0)
  198.     (
  199.         (set #ppc 0)
  200.  
  201.         (set #ppc
  202.             (askchoice
  203.                 (help @askchoice-help)
  204.                 (prompt #PROMPT_INSTALL_PPC)
  205.                 (choices #YES #NO)
  206.                 (default #ppc)
  207.             )
  208.         )
  209.     )
  210. )
  211.  
  212. (if (= #ppc 1)
  213.     (set #cpu_install
  214.         (askchoice
  215.             (help @askchoice-help)
  216.             (prompt #INSTALL_WHICH_VERSION)
  217.             (choices "68020" "68040" "68060")
  218.             (default #ourcpu)
  219.         )
  220.     )
  221. )
  222.  
  223. (set @default-dest "Libs:")
  224.  
  225. (if (= @user-level 2) ;If expert user, ask directory
  226.     (
  227.         (set @default-dest
  228.             (askdir
  229.                 (prompt #SELECT_INSTALL_DIRECTORY)
  230.                 (help @askdir-help)
  231.                 (default @default-dest)
  232.             )
  233.         )
  234.     )
  235. )
  236.  
  237. (if (= #ppc 0)
  238.     (
  239.         ; PPC installed
  240.         (P_copylib "libs/imageprocess.library_wos" @default-dest "imageprocess.library")
  241.     )
  242.     (
  243.         (set #entry (select #cpu_install "020" "040" "060" ""))
  244.         (set #entry (cat "libs/imageprocess.library_" #entry))
  245.  
  246.         (P_copylib #entry @default-dest "imageprocess.library")
  247.     )
  248. )
  249.  
  250. (complete 100)
  251.  
  252. ; *********************** Finished installation
  253.  
  254. (message (cat #UPDATES_AVAILABLE #BLANK #BLANK #HOMEPAGE))
  255.